package com.github.zyt.webuploader;

import org.apache.poi.POIXMLDocument;
import org.apache.poi.POIXMLTextExtractor;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.xwpf.extractor.XWPFWordExtractor;
import org.apache.poi.xwpf.usermodel.XWPFDocument;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class TestHaha {

    public static void main(String[] args) throws  Exception {

       /* OPCPackage opcPackage = POIXMLDocument.openPackage("C:\\Users\\30419\\Desktop\\haha.docx");
        POIXMLTextExtractor extractor = new XWPFWordExtractor(opcPackage);
        System.out.println(extractor.getText());
*/


     File file=new File("D:\\upload\\files\\temp\\2201621\\aa.txt");

        FileOutputStream fileOutputStream = new FileOutputStream(file,true);
        System.out.println(fileOutputStream);
    }
}
